package com.summer.mall.entity;

import java.util.ArrayList;
import java.util.List;

public class Customer {

    private String sessionId;
    private Boolean accepted;
    private String user_name;
    private Integer user_id;
    private Long lastTime;
    private List<ChatMsg> chatMsgArray;
    private CustomService customService;

    public Customer(User user, Long lastTime) {
        this.accepted = false;
        this.user_name = user.getUsername();
        this.user_id = user.getId();
        this.lastTime = lastTime;
        this.chatMsgArray = new ArrayList<>();
        this.customService = null;
    }

    public Customer(User user, Boolean accepted, Long lastTime) {
        this.accepted = accepted;
        this.user_name = user.getUsername();
        this.user_id = user.getId();
        this.lastTime = lastTime;
        this.chatMsgArray = new ArrayList<>();
        this.customService = null;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public CustomService getCustomService() {
        return customService;
    }

    public void setCustomService(CustomService customService) {
        this.customService = customService;
    }

    public List<ChatMsg> getChatMsgArray() {
        return chatMsgArray;
    }

    public void setChatMsgArray(List<ChatMsg> chatMsgArray) {
        this.chatMsgArray = chatMsgArray;
    }

    public void setChatMsgs(List<ChatMsg> chatMsgs) {
        this.chatMsgArray = chatMsgs;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public void setLastTime(Long lastTime) {
        this.lastTime = lastTime;
    }

    public Long getLastTime() {
        return lastTime;
    }

    public Boolean getAccepted() {
        return accepted;
    }

    public void setAccepted(Boolean accepted) {
        this.accepted = accepted;
    }

}
